<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <div class="box" v-text="msg"></div>
    <div class="box2">
      {{msg}}
    </div>

    <div v-text="content"></div>
    {{content}}
    <div v-html="content"></div>
  </div>
  <script src="./vue.global.js"></script>
  <script>
    const msg = '这是全局变量';
    const { createApp } = Vue;
    // 创建应用程序实例 

    const app = createApp({
      data(){
        return {
          msg: '你好vue',
          content: `
            <h1 style="color: red">这是内容</h1>
          `
        }
      },
     
    })
    app.mount('#app')

  
  </script>
</body>
</html>